/* 
 * File:   dialog.hpp
 * Author: jolo
 *
 * Created on 5. Oktober 2011, 18:46
 */

#ifndef WIDGETS_DIALOG_HPP
#define	WIDGETS_DIALOG_HPP

#include <QtGui/QDialog>

#include <QtGui/QDialogButtonBox>

#include <core/core.hpp>

namespace widgets
{

    class dialog : public QDialog
    {
        Q_OBJECT
    public:
        dialog(QWidget* p = 0);
        virtual ~dialog();
        
        QDialogButtonBox* buttons() const { return bbW_; }
        
    public slots:
        virtual void accept();
        virtual void reject();
        
    protected:
        virtual QDialogButtonBox* create_buttons();
        
        QDialogButtonBox* bbW_;
    };
}

#endif	/* DIALOG_HPP */

